<%--
  Created by IntelliJ IDEA.
  User: minshiwu
  Date: 2017/2/26
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page language="java" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
    <title>Title</title>
</head>
<body>
<form action="<%=basePath%>/login.do" method="post">
    用户名:<input type="text" name="name"/> <br/>
    密码:<input type="text" name="passwd"/><br/>
    <input type="submit" value="登录" />
</form>
</body>
</html>
